package com.aaa.statistics.controller.api;


import com.aaa.entity.OrderCharge;
import com.aaa.vo.Result;
import com.aaa.statistics.service.IOrderChargeService;
import com.aaa.statistics.vo.HisCareOrderItemVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author ：晋升（js20020923@qq.com）
 * @date ：Created in 2023/3/29 11:39
 * @description：收费表
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("statistics/api/charge")
public class ApiOrderChargeController {
    @Autowired
    private IOrderChargeService orderChargeService;

    /**
     * 获取统计表中所有数据
     * @param
     * @return
     */
    @PostMapping("getInfo")
    public Result<Map<String,Object>> getInfo(@RequestBody HisCareOrderItemVo hisCareOrderItemVo){
        return orderChargeService.getInfo(hisCareOrderItemVo);
    }
}

